		<table class="custom-table" cellpadding="0" cellspacing="0">
			<thead>
			<tr>
				<th class="th01">订单号</th>
				<th class="th02">用户ID</th>
				<th class="th03">商户ID</th>
				<th class="th04">问题描述</th>
				<th class="th05">退货商品(数量)</th>
				<th class="th05">申请时间</th>
				<th class="th01">图片</th>
				<th class="th03">操作</th>
			</tr>
			</thead>
			<tbody>
			<?php foreach ($this->paginator as $refund):?>
				<tr>
                 <td><?php echo $this->escapeHtml($refund->order_no);?></td>
                 <td><?php echo $this->escapeHtml($refund->user_id);?></td>
                 <td><?php echo $this->escapeHtml($refund->org_id);?></td>
                 <td><?php echo $this->escapeHtml($refund->mark);?></td>
                 <td><?php 
                 $temProArry = explode(",",$refund->products);
                 $temNumArry = explode(",",$refund->amounts);
                 $str_return = '';
                 foreach ($temProArry as $key => $temPro){
                     $str_return .= $temPro.'('.$temNumArry[$key].')|';
                 }
                 echo substr($str_return, 0, -1);
                 ?></td>
                 <td><?php echo $this->escapeHtml($refund->create_time);?></td>
                 <td>
                 <?php if(!empty($refund->pic_1)):?><a target="_blank" href="<?php echo $this->escapeHtml($refund->pic_1);?>"><img src="<?php echo $this->escapeHtml($refund->pic_1);?>" width="30" height="30"></a><?php endif;?>&nbsp;
                 <?php if(!empty($refund->pic_2)):?><a target="_blank" href="<?php echo $this->escapeHtml($refund->pic_2);?>"><img src="<?php echo $this->escapeHtml($refund->pic_2);?>" width="30" height="30"></a><?php endif;?>&nbsp;
                 <?php if(!empty($refund->pic_3)):?><a target="_blank" href="<?php echo $this->escapeHtml($refund->pic_3);?>"><img src="<?php echo $this->escapeHtml($refund->pic_3);?>" width="30" height="30"></a><?php endif;?>&nbsp;
                 <?php if(!empty($refund->pic_4)):?><a target="_blank" href="<?php echo $this->escapeHtml($refund->pic_4);?>"><img src="<?php echo $this->escapeHtml($refund->pic_4);?>" width="30" height="30"></a><?php endif;?>
                 </td>
                 <td>
                 <?php if($refund->status == 2):?>
                 <?php echo '已同意';?></td>
                 <?php else:?>
                 <a href="JavaScript:agree('<?php echo $this->escapeHtml($refund->order_id);?>');">同意</a>
                 <?php endif;?>
                 </td>
				</tr>
			<?php endforeach; ?>
			</tbody>
		</table>
<?php
 // add at the end of the file after the table
 echo $this->paginationControl(
     // the paginator object
     $this->paginator,
     // the scrolling style
     'sliding',
     // the partial to use to render the control
     'partial/ajax-paginator.phtml',
     // the route to link to when a user clicks a control link
     array(
         'route' => $this->url('crm/order',
          array('action'=>'ajax-return-table')),
         'params_string' => ''
     )
 );
 ?>